package com.yq.base;

import java.io.FileInputStream;
import java.io.InputStream;

/**
 * @ClassName testTryCatchSource
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/2/5 14:37
 * @Version 1.0
 */
public class testTryCatchSource {
    public static void main(String[] args) {
        try (InputStream inputStream = new FileInputStream("a.txt")) {
        } catch (Exception e) {
        } finally {
            //close方法自动执行
        }
    }
}
